package com.wuge.cart.Feign;

import com.wuge.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeign {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R getSku(@PathVariable("skuId") Long skuId);
    @RequestMapping("/product/skusaleattrvalue/attr/{skuId}")
    public List<String> getAttrStr(@PathVariable("skuId") Long skuId);
    @RequestMapping("/product/skuinfo/price/{skuId}")
    public BigDecimal getCurrentPrice(@PathVariable("skuId") Long skuId);
}
